/**
 * @author abcque
 * @version 1.0
 * @ className ArithmeticTest1
 * @ description 自增/自减运算符练习
 * @ date 2022/10/25 10:26
 */
public class ArithmeticTest1 {
    public static void main(String[] args) {
        int i1 = 10;
        int i2 = 20;

        int i = i1++;
        System.out.println("i = " + i);
        System.out.println("i1 = " + i1);

        i = ++i1;
        System.out.println("i = " + i);
        System.out.println("i1 = " + i1);

        i = i2 --;
        System.out.println("i = " + i);
        System.out.println("i2 = " + i2);

        i = --i2;
        System.out.println("i = " + i);
        System.out.println("i2 = " + i2);
    }
}
